package com.carkeeper.storebill.feign;

import com.carkeeper.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient("STORE-BILL")
public interface StoreBillFeign {

    /**
     * 根据code查询账单信息
     * @param code 账单编码
     * @return 账单,车主，商家组合实体（Map）
     */
    @GetMapping("/storebill/findByCode")
    public Result<Map> findByCode(@RequestParam("code") String code);

}
